package com.example.netty.encode.Packet;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

/**
 * @author liupk
 * @date 2018/10/24
 */
@Data
public abstract class Packet {
    
    /**版本号*/
    @JSONField(deserialize = false, serialize = false)
    private Byte version = 1;
    
    /**指令*/
    @JSONField(serialize = false)
    public abstract Byte getCommand();
}